﻿using System;

namespace Sustainalytics.Entities
{
    [Serializable]
    public class CriteriaTypeTwo : BaseCriteria
    {
        public int? Score { get; set; }
        public Guid BaseEventIndicatorId { get; set; }
        public bool IsScreenable { get; set; }
        public Guid CriteriaLevel3Id { get; set; }
        public string EventIndicatorName { get; set; }

        public static CriteriaTypeTwo CriteriaTypeTwoWithGraph(TemplateCriteria templateCriteria)
        {
            return new CriteriaTypeTwo()
            {
                Id = templateCriteria.Id,
                Name = templateCriteria.Name,
                CriteriaType = CriteriaTypeEnum.CriteriaType2,
                IsScreenable = templateCriteria.IsScreenable
            };
        }
    }
}
